On the intermediate layer server, package dataset data. The client receives the data using dataset. There are two formats:
(1) tdatasetprovider. Data Format
(2) The format obtained by ADO _ stream is called adostream format, which is also divided into adtg format and XML format.
The following tests the efficiency of ADO and dbexpress database engines in generating different formats.
The test code is as follows:
Function adoreaddata (adataset: tcustomadodataset; aformat: tpersistformat = pfadtg):
Demand Source:Olecontainer is used to operate on Excel. To save the Excel file to the database in binary format and read it in binary formatStream storage:Procedure savetostream (adotable1: tadotable)VaRVstream: tmemorystream;BeginTryTryVstream: = tmemorystream. Create;Vstream. Clear;Olecontainer1.savetostream (vstream );Vstream. Position: = 0;Adotable1.append;Tb
Program ftpserver_console;(*Sample of the usage of the tidftpserver component.Also shows how to use Indy in console appsCreated by: Bas gooijen (bas_gooijen@yahoo.com)
Disclaimer:Use it at your own risk, it cocould contain bugs.
Copyright:Freeware for all use*)
{$ Apptype console}UsesClasses,Windows,Sysutils,Idftplist,Idftpserver,Idtcpserver,Idsockethandle,Idglobal,Idhashcrc;
TypeTftpserver = ClassPrivate{Private Declarations}Idftpserver: tidftpserver;Procedure idftpserver1userlogin (asender: ti
, where we control the playback time primarily with PTS. Use Av_frame_get_best_effort_timestamp for decoded avframe to get pts. Time_baseWe notice that PTS is a shaping data, Time_base is the unit of PTS, and pts times time_base to get the actual time. Only the time_base obtained in Avstream is right, and other places may have problems. Audio and video synchronization strategyThere are generally three ways to sync audio to video, sync video to audio, and sync video to external time. General para
Label:Source of demand:Olecontainer Excel, want to store excel in binary mode and read it in binary modeDeposit Stream:Procedure Savetostream (adotable1:tadotable)VarVstream:tmemorystream;BeginTryTryVstream: = tmemorystream.create;Vstream.clear;Olecontainer1.savetostream (Vstream);Vstream.position: = 0;Adotable1.append;Tblobfield (Adotable1.fieldbyname ("Blobfield")). Loadfromstream (Vstream);Adotable1.post
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.